using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SqlBuddy
{
    public partial class ConnectionEditor : Form
    {
        private BuddyConnection connToEdit;

        public BuddyConnection ConnToEdit
        {
            get
            {
                return(connToEdit);
            }
            set
            {
                connToEdit = value;
                propertyGrid1.SelectedObject = connToEdit;
            }
        }

        public ConnectionEditor()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
            this.Close();
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}